package com.oceansoft.mobile.econsole.modules.weixin.persistence;

import com.oceansoft.mobile.econsole.modules.weixin.entity.TcDriverInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 
 * @author jin.xu
 * @createTime 2015年4月13日 上午11:25:44
 * @packagePath com.oceansoft.mobile.econsole.modules.weixin.persistence.TcDriverInfoMapper.java
 */
@Repository
public interface ITcDriverInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TcDriverInfo record);

    int insertSelective(TcDriverInfo record);

    TcDriverInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TcDriverInfo record);

    int updateByPrimaryKey(TcDriverInfo record);
    
    List<TcDriverInfo> selectCarInfoByOpenId(String openId);
    
    List<TcDriverInfo> selectAllCarInfo();

    List<TcDriverInfo> selectDcnInfoByOpenId(String openId);
    
    List<TcDriverInfo> selectByOpenid(String openId);
    
    /**
     * 微信号与身份证信息绑定
     */
    int bindInfo(TcDriverInfo record);
}